﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Magicodes.ExporterAndImporter.Core;

namespace Admin.NET.Application;

/// <summary>
/// 库存盘点输出参数
/// </summary>
public class InventorycountsOutput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public long Id { get; set; }    
    
    /// <summary>
    /// 盘点单号
    /// </summary>
    public string? CountNumber { get; set; }    
    
    /// <summary>
    /// 盘点类型
    /// </summary>
    public long? InventoryTypeId { get; set; }    
    
    /// <summary>
    /// 盘点类型 描述
    /// </summary>
    public string InventoryTypeFkDisplayName { get; set; } 
    
    /// <summary>
    /// 盘点开始时间
    /// </summary>
    public DateTime? InventoryStartTime { get; set; }    
    
    /// <summary>
    /// 盘点结束时间
    /// </summary>
    public DateTime? InventoryEndTime { get; set; }    
    
    /// <summary>
    /// 仓库名称
    /// </summary>
    public long? RepositoryNameId { get; set; }    
    
    /// <summary>
    /// 仓库名称 描述
    /// </summary>
    public string RepositoryNameFkDisplayName { get; set; } 
    
    /// <summary>
    /// 所在部门
    /// </summary>
    public long? Department { get; set; }    
    
    /// <summary>
    /// 所在部门 描述
    /// </summary>
    public string DepartmentFkDisplayName { get; set; } 
    
    /// <summary>
    /// 经办人
    /// </summary>
    public long? Attn { get; set; }    
    
    /// <summary>
    /// 经办人 描述
    /// </summary>
    public string AttnFkDisplayName { get; set; } 
    
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }    
    
    /// <summary>
    /// 制单人
    /// </summary>
    public long? MakeSingle { get; set; }    
    
    /// <summary>
    /// 制单人 描述
    /// </summary>
    public string MakeSingleFkDisplayName { get; set; } 
    
    /// <summary>
    /// 盘点库位
    /// </summary>
    public long? CountLocationsIdId { get; set; }    
    
    /// <summary>
    /// 盘点库位 描述
    /// </summary>
    public string CountLocationsFkDisplayName { get; set; } 
    
    /// <summary>
    /// 盘点数量
    /// </summary>
    public int? CountQuantity { get; set; }    
    
    /// <summary>
    /// 盘盈数量
    /// </summary>
    public int? NumberProfits { get; set; }    
    
    /// <summary>
    /// 盘亏数量
    /// </summary>
    public int? NumberLosses { get; set; }    
    
    /// <summary>
    /// 盘点状态
    /// </summary>
    public int? InventoryStatus { get; set; }    
    
    /// <summary>
    /// 参考单价
    /// </summary>
    public decimal? ParticipationPrice { get; set; }    
    
    /// <summary>
    /// 盘点明细备注
    /// </summary>
    public string? InventoryDetailRemarks { get; set; }    
    
    /// <summary>
    /// 上传附件
    /// </summary>
    public string? UploadAttachments { get; set; }    
    
    /// <summary>
    /// 软删除
    /// </summary>
    public bool IsDelete { get; set; }    
    
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }    
    
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }    
    
    /// <summary>
    /// 创建者Id
    /// </summary>
    public long? CreateUserId { get; set; }    
    
    /// <summary>
    /// 创建者姓名
    /// </summary>
    public string? CreateUserName { get; set; }    
    
    /// <summary>
    /// 修改者Id
    /// </summary>
    public long? UpdateUserId { get; set; }    
    
    /// <summary>
    /// 修改者姓名
    /// </summary>
    public string? UpdateUserName { get; set; }    
    
}

/// <summary>
/// 库存盘点数据导入模板实体
/// </summary>
public class ExportInventorycountsOutput : ImportInventorycountsInput
{
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public override string Error { get; set; }
}
